package com.koron.rating.change.mapper;

import com.koron.rating.change.bean.RatingEqDto;
import com.koron.rating.change.bean.UnitEquipmentDetBean;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

public interface UnitEquipmentDetBeanMapper {
    int deleteByPrimaryKey(String id);

    int insert(UnitEquipmentDetBean record);

    int insertSelective(UnitEquipmentDetBean record);

    UnitEquipmentDetBean selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(UnitEquipmentDetBean record);

    int updateByPrimaryKey(UnitEquipmentDetBean record);

    int batchInsert(@Param("list") List<UnitEquipmentDetBean> list);

    List<UnitEquipmentDetBean> queryByAll(RatingEqDto dto);

    int deleteByChangePrimaryId(@Param("changePrimaryId")String changePrimaryId);

    int deleteByIdIn(@Param("idCollection")Collection<String> idCollection);

    List<String> queryDeptIdByChangeId(@Param("changeId")String changeId);

    List<UnitEquipmentDetBean> queryByChangeId(@Param("changeId")String changeId);

    // 根据变更树id 批量删除
    int deleteByChangePrimaryIdIn(@Param("changePrimaryIdCollection")Collection<String> changePrimaryIdCollection);



}
